      @charset "utf-8";
/*
 * 全站样式公共资源
 * 
 * @since 2015-07-09
 * @author dongxiaochai@163.com
 */
@import "variables.less";
@import "mixin.less";
@import "base.less";

//引入弹窗样式
@import "../lib/overlay/overlay.less";

/* IE10 11 input后面的X图标 */
input::-ms-clear{
    display:none;
}
/*
 * 包裹，一般样式都会包在该标签下，以使用一致的宽度
 */
.wrapper {
    position: relative;
    width: @mainBodyWidth;
    margin: 0 auto;
    z-index: 1;
}
.wrapper:after {
    content: '\20';
    display: block;
    height: 0;
    clear: both;
}

/**
 * 浮动顶部
 */
.cover-header{
    background:#f5f5f5;
    height: 35px;
    font-size: 16px;
    border-bottom: 1px solid #e6e6e6;
    .link-box{
        font-size: 0;
    }
    span, a, i{
        display: inline-block;
        *display: inline;
        *zoom: 1;
        font-size: 14px;
        line-height: 35px;
        vertical-align: middle;
    }
    .app-link, .dynamic-box{
        font-size: 0;
    }
    .app-link{
        cursor: pointer;
        i{
            background: url(../img/icon/icon-w15.png) no-repeat;
            width: 11px;
            height: 15px;
            margin: 0 5px 0 0;
            *margin-top: 1px;
        }
    }

    .left-link{
        float: left;
    }
    a.login, a.loginOut{
        color: @primaryColorRed;
    }

    .nav-link{
        float: right;
        i.line{
            background-color: #e6e6e6;
            /*box-shadow: */
            background: url(../img/top-line.png) no-repeat;
            width: 2px;
            height: 24px;
            margin: 2px 10px 0 10px;
        }
    }
    span.currUser{
        margin-right:10px;
    }
}

/**
 * 通用顶部导航
 */
.common-header{
    background-color: #FFF;
    line-height: 90px;
    .wrapper{
        z-index: 999;
    }
    .logo-box{
        a, span{
            display: block;
            line-height: 89px;
        }
        .logo{
            background: url(../img/logo.png) 0 center no-repeat;
            width: 351px;
            height: 45px;
            padding: 22px 0;
        }
        span{
            display: none;
        }
    }
    .nav-container{
        position: absolute;
        right: 0;
        top: 0;
        .nav-item{
            position: relative;
            font-size: 16px;
            float: left;
            text-decoration: none;
            color: #333;
            margin:0 10px;
            /*line-height: 87px;*/
            height: 90px;
            z-index: 1;
            /* padding: 0 15px; */
            &.curr{
                height: 87px;
                border-bottom: 3px solid @primaryColorRed;
                .nav-link{
                    color: @primaryColorRed;
                    padding: 0 15px;
                    display: block;
                }
            }
            &:hover{
                z-index: 2;
                .nav-link{
                    display: block;
                    background: #FFF;
                    color: @primaryColorRed;
                }
            }
            .nav-link{
                margin-top: 30px;
                line-height: 40px;
                display: block;
                padding: 0 15px;
                font-size: 16px;
            }
        }
    }
}

/* 动画 */
.common-header .nav-item,
.common-header .nav-item .nav-link{
    transition:all .1s ease-in-out;
    -webkit-transition:all .1s ease-in-out;
    -ms-transition:all .1s ease-in-out;
    -o-transition:all .1s ease-in-out;
    -moz-transition:all .1s ease-in-out;
}

/**
 * 顶部banner
 */
.top-banner{
    overflow: hidden;
    .wrapper{
       height: 425px;
    }
}

/*
 * 公共底部样式
 * 
 * @since 2014-11-26
 * @author yun.xie@guanxin.com
 */
#footer{
    position: relative;
    @color: #b0b1b6;
    background: #333438; 
    color: @color;
    white-space: nowrap;
    font-size: 18px;
    z-index: 0;
    .wrapper{
        // position: static;
    }
    .navLink-container{
        padding:50px 0 20px 15px;
        border-bottom: 1px dashed #545558;
        .footer-logo{
            float: left;
            position: relative;
            top: -5px;
            width: 190px;
            height: 56px;
            background: url(../img/logo-gray.png) no-repeat;
        }
        .nav-col{
            float: left;
            &.customer-service{
                position: relative;
                top: -2px;
                margin: 0 10px 0 50px;
                width: auto;
                // width: 217px;
                .title{
                    font-size: 20px;
                }
                .work-time{
                    // position: absolute;
                    // left: 83px;
                    // top: -3px;
                    font-size: 12px;
                    margin-top: 10px;
                    // padding-left: 5px;
                }
                // .tel{
                //     margin-top: 5px;
                //     font-size: 24px;
                // }
            }
            &.qrcode{
                margin-top: -30px;
                font-size: 14px;
                padding-left: 50px;
                img, span{
                    display: block;
                }
                span{
                    margin-top: 10px;
                    text-align: center;
                }
                &.wx{
                    padding-left: 55px;
                }
            }
        }
        .nav-link{
            float: left;
            color: @color;
            margin-left: 28px;
        }
    }

    /**
     * 公安备案
     */
    .copyright{
        text-align: center;
        padding: 30px 0;
        font-size: 14px;
        .company-info{
            margin: 0 -40px 15px 0;
            span{
                margin-right: 40px;
            }
        }
        .security{
            width:300px;
            margin:0 auto; 
            padding-top:15px;
            line-height: 20px;
            img, span{
                float: left;
                color: @color;
                font-size: 14px;
            }
            img{
                margin-right: 5px;
            }
        }
    }
}


/**
 * 侧栏定位浮标
 */
.sidebar-box{
    position: fixed;
    z-index: 999;
    right: 0;
    bottom: 100px;
    .side-item{
        position: relative;
        background: url(../img/sidebar.png) no-repeat;
        width: 50px;
        height: 50px;
        margin-bottom: 2px;
        cursor: pointer;
        /*background-color: #fff;*/
        /*transition: background-position .2s ease-in-out;*/
        .layout{
            position: absolute;
            z-index: -1;
            color: #fff;
            font-size: 16px;
            background-color: #d84747;
            text-align: center;
        }
        &.customer .layout{
            font-size: 12px;
            right: -180px;
            top: 0;
            width: 140px;
            height: 100%;
            border-top-left-radius: 2px;
            border-bottom-left-radius: 2px;
            transition: right .2s ease-in-out;
            -webkit-transition: right .2s ease-in-out;
            -o-transition: right .2s ease-in-out;
            -moz-transition: right .2s ease-in-out;
            -ms-transition: right .2s ease-in-out;
            .title{
                font-size: 16px;
                margin: 4px 0 1px 0;
            }
        }
        &.customer:hover .layout{
            right: 48px;
        }
        &.app{
            background-position: -50px 0;
            .layout{
                position: absolute;
                bottom: 0;
                right: 50px;
                width: 140px;
                height: 160px;
                background-color: #d84747;
                border-radius: 2px;
                display: none;
              /*  opacity: 0;
                filter:alpha(opacity=0);
                transition: opacity .2s ease-in-out;
                -webkit-transition: opacity .2s ease-in-out;
                -o-transition: opacity .2s ease-in-out;
                -moz-transition: opacity .2s ease-in-out;
                -ms-transition: opacity .2s ease-in-out;*/
                .title{
                    font-size: 16px;
                    margin: 10px 0;
                }
                img{
                    width: 95px;
                    height: 95px;
                    display: block;
                    margin: 0 auto;
                }
            }
        }
        &.app:hover .layout{
            display: block;
        /*    opacity: 1;
            filter:alpha(opacity=100);*/
        }
        &.gotoTop{
            background-position: -100px 0;
        }
        &:hover{
            background-position-y:-50px !important;
        }
    }
}


/**
 * 错误提示
 */
 .error-box {
    position: relative;
    overflow: hidden;
    margin: 8px 0;
    .error-tip{
        height: 28px;
        line-height: 28px;
        color: #fe6164;
        padding-left: 35px;
        display: none;
        border: 1px solid #fe6164;
        background: #fff2f3 url(../img/valid-icon.png) 5px 3px no-repeat;
    }
}

 /**
  * 图片背景的按钮
  */
/* .img-btn{
    background: url(../img/btn-bg.png) repeat-x;
 }
 .img-btn:hover{
    background-image: url(../img/btnHover-bg.png);
 }*/

 /*
 * 模拟下拉列表
 */
.selectBox{
    position: relative;
    z-index: 10;
    .item-field{
        border: 1px solid #D2D2D2;
        position: relative;
        cursor: default;
        outline: medium none;
        background-color: #FFF;
        white-space:nowrap;
        .arrow{
            position: absolute;
            right: 10px;
            top: 16px;
            width: 12px;
            height: 6px;
            background:url(../img/dropdown-arrow.png) no-repeat;
        }
    }
    .select-sort {
        position: absolute;
        top: 40px;
        left: -1px;
        border: 1px solid #CCC;
        overflow-x: hidden;
        min-width: 168px;
        // min-width: 260px;
        line-height: 1;
        background-color: #fff;
        font-size: 14px;
        max-height: 460px;
        *max-height: 510px;
        overflow-y: auto;
        z-index: 999;
        .sub-sort{
            padding: 5px;
        }
        li, dt, dd{
            padding: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        dl{
            border-bottom: 1px solid #CCC;
            padding: 0 0 5px 5px;
        }
        dt{
            font-weight:bolder;
            margin: 5px 0 0 0;
        }
        li.curr, li.curr a, dd.curr, dd.curr a, li:hover, li:hover a, dd:hover, dd:hover a{
            background-color: #f95b56;
            color:#fff;
        }
        li.forbid{
            background-color: #fff !important;
        }

        /**
         * 品牌车型车系定制样式
         */
        &.carBrand-select{
            .title-box{    
                padding-left: 5px;    
                height: 30px;    
                line-height: 30px;    
                border-bottom: 1px solid #ccc;
                font-size: 12px;
                color: #333;
                a{
                    font-size: 12px;
                    color: #333;
                    &:hover{
                        color: @primaryColorRed;
                    }
                }
                i{
                    color: @primaryColorRed;
                    font-style: normal;
                }
            }
            .letters, .brands{
                float: left;
            }
            .letters{
                font-size: 12px;
                border-right: 1px solid #ccc;
                width: 24px;
                font-size: 12px;
                text-align: center;
            }
            .letters li{
                padding: 2px 5px;
                *zoom:normal;
                *margin-bottom:-1px;
            }
            .brands{
                width: 128px;
                height: 415px;
                *height: 440px;
                overflow-y:auto;
                line-height: 1.3;
                padding-left: 0;
            }
        }

        /**
         * 年月筛选
         */
        &.yearMonth-select{
            min-width: 350px;
            .years, .months{
                float: left;
                width: 46%;
                height: 290px;
                overflow: auto;
            }
            .months{
                border-left: 1px solid #ccc;
            }
        }
    }
    //关键词筛选
    &.keySearchBox{
        .select-sort{
            padding:5px 0;
            top: 35px;
            border-radius: 5px;
            .title-box, li{
                font-size: 16px;
                padding:0 10px;
                line-height: 30px;    
            }
            .title-box{    
                // height: 30px;    
                // border-bottom: 1px solid #ccc;
                font-size: 16px;
                color: @secColorRed;
            }
            .sub-sort{
                padding:0;
            }
        }
    }
    //城市
    &.citySelectBox{
        //热门
        .hot-select{
            .title-box{
                height: 35px;
                line-height: 35px;
                text-align: center;
                border-bottom: 1px dashed #ddd;
                i{
                    color: @fontColorRed;
                    font-style: normal;
                }
            }
            ul{
                padding: 10px 5px;
                li{
                    float: left;
                    padding: 5px 10px;
                    margin: 5px 10px;
                }
            }
        }
        .select-sort{
            li{
                // line-height: 1.3;
            }
        }
    }
}

//省市区下拉框
.prSelectBox{
    .selectBox;
    .item-field{
        width: 135px;
        margin: 0 15px 0 0;
        .field {
            display: block;
            width: 95px;
            overflow: hidden;
        }
    }
}
   
/**
 * 模拟placeholder
 */
.ph-label{
    color: #A9A9A9;
    position: absolute;
    left: 0;
    top: 0;
}


/**
 * 通用的申请表单样式
 */
.bt-form .form-title,
.bt-form a{
    color: #FFF;
}
.bt-form .form-title{
    line-height: 45px;
}
.bt-form{
    .form-item{
        .item-field,
        input{
            line-height: 38px;
        }
        .item-field{
            position: relative;
            z-index: 1;
            width: 250px;
            color: #333;
            border:1px solid #ccc;
            border-radius: 2px;
            padding: 1px 15px 0 15px;
            // padding-top: 1px;
            height:40px;
            .field{
                display:block;
                max-width: 100%;
                max-height: 100%;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                &.default-text{
                    color: #A9A9A9;
                }
            }
        }
        /*.bt-form .form-item .item-field.focus{
            border-color: @primaryColorRed;
            border-color: rgba(232, 60, 54, 0.5);
            -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(255, 100, 100,.6);
            box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(255, 100, 100,.6);
        }*/
        input{
            height: 38px;
            width: 100%;
            border: 0 none;
            padding-left: 0px;
            margin-left: 0px;
        }
        .get-code,
        .not-get{
            position: absolute;
            right: 15px;
            top: 0;
            font-size: 14px;
            font-weight: normal;
            color: #333;
        }
        .get-code{
            color: @primaryColorRed;
        }
        .not-get{
            display: none;
        }
        .forbid{
            color: #999 !important;
            top: 0px;
            cursor: default;
        }

        /**
         * 表单错误提示
         */
        .tip-box{
            line-height: 40px;
            margin-left: 10px;
            padding: 1px 0 0 0;
            color: #999;
            &.success{
              background: url(../img/icon/icon-w20.png) 0 -45px no-repeat;
            }
        }
        &.error{
            .item-field{
                border-color: #fe6164;
            }
            .tip-box{
              background: url(../img/icon/icon-w20.png) 0 -45px no-repeat;
              padding-left: 25px;
              color: #fe6164;
            }
        }
    }
    .action-btn{
        display: block;
        height: 45px;
        line-height: 45px;
        background: #438fdb;
        border-radius:3px;
        text-align:center;
        text-decoration: none;
        font-size: 18px;
        margin-top: 15px;
    }
}


/**
 * 弹层表单样式
 */
.overlay-btForm{
    min-height: 355px;
    .error-box{
        margin: 20px 0 10px 0;
    }
    .form-item .item-field{
        margin-bottom: 15px;
    }
    .action-btn{
        margin-top: 30px;
        background-color: @primaryColorRed;
    }
}

/**
 * 分页栏样式
 */
.pager-container{
    font-size: 0;
    margin: 0 auto;
    text-align: center;
    margin: 30px 0;
    a, span{
        display: inline-block;
        *display: inline;
        *zoom: 1;
        line-height: 40px;
        font-size: 14px;
        margin-right: 10px;
    }
    a{
        padding: 0 15px;
        background: #fff;
        border:1px solid #e2e2e2;
        cursor: pointer;
        &.curr, &:hover{
            background-color: @primaryColorRed;
            border-color: @primaryColorRed;
            color: #fff;
        }
        &.forbid{
            color: #ccc;
            border:1px solid #e2e2e2;
            background-color: transparent !important;
            cursor: default;
        }
    }
}

/* 通用loading */
i.loading{
    display: block;
    width: 400px;
    height: 100px;
    margin: 100px auto;
    background: url(../img/loading.gif) center center no-repeat;
}

/**
 * 车辆列表
 */
.cars-module .car-list {
    margin: 15px -16px 0 0;
    padding-bottom: 20px;
}
.car-list{
    .car-item{
        *zoom:1;
        // height: 285px;
        display: block;
        cursor: pointer;
        float: left;
        padding: 19px 19px 17px 19px;
        width: 225px;
        background: #fff;
        border:1px solid #eee;
        margin:0 13px 15px 0;
        &:hover{
            box-shadow: 0px 0px 8px 3px #eee;
            .car-name{
                color: @primaryColorRed;
            }
        }
        .img-link{
            position: relative;
            z-index: 0;
            display: block;
            height: 150px;
            font-size: 0;
            text-align: center;
            word-break: break-all;
            word-wrap: normal;
            *overflow: visible;
            background: url(../img/pic-default.jpg) #ececec no-repeat;
            img,span{
                // display: inline-block;
                // *display: inline;
                // *zoom:1;
                // vertical-align: middle;
                // line-height: 100%;
            }
            span{
                // width: 0;
                // height: 100%;
            }
            img{
                z-index: -1;
                max-width: 100%;
                max-height: 100%;
                border: 0 none;
                opacity: 0;
                filter:alpha(opacity=0);
            }
            span{
                *background: #fff;
                *opacity: 0;
                filter:alpha(opacity=0);
                position: absolute;
                z-index: 2000;
                left: 0;
                top: 0;
                right: 0;
                bottom: 0;
                *zoom:1;
            }
            .sign{
                position: absolute;
                z-index: 20;
                left: 0;
                top: 0;
                background: url(../img/icon/car-sign.png) 0 0 no-repeat;
                width: 42px;
                height: 42px; 
            }
            .saled{
                background: #fff url(../img/icon/saled-icon.png) center no-repeat;
                // width: 101px;
                // height: 87px;
                position: absolute;
                z-index: 30;
                left: 0;
                top: 0;
                right: 0;
                bottom: 0;
                opacity: 0.8;
                filter:alpha(opacity=80);
            }
        }
        .line-box{
            .text-over-hide();
        }
        .line-box{
            color: @fontColorDeepBlack;
            display: block;
            font-size: 16px;
            line-height: 1;
            &.car-name{
                padding: 20px 0 10px 0;
            }
            &.info{
                font-size: 12px;
                color: #999;
                // white-space: pre-wrap;
                margin-bottom: 17px;
            }
            &.first-price{
                strong,i,span,b{
                    vertical-align: baseline;
                }
                strong{                    
                    font-weight: normal;
	                vertical-align: middle;
                    color: @primaryColorRed;
                    font-size: 22px;
                }
                i,b{
                    font-weight: normal;
                    padding-left: 5px;
                    color: @fontColorGray;
                    font-size: 16px;
                    font-style: normal;
	                vertical-align: middle;
                }
                i{
                    text-decoration: line-through;
                }
                span{
                    display: inline-block;
                    color: #fc5e64;
                    font-size: 12px;
	                vertical-align: middle;
                    width: 58px;
                    height: 18px;
                    line-height: 18px;
                    border-radius: 2px;
                    text-align: center;
                    border: 1px solid #fc5e64;
                }
            }
        }
    }
}

/**
 * 通用鼠标滑过动画
 */
.animate-scale-bigger,
.animate-scale-smaller,
.animate-right,
.animate-up,
.animate-down{
    -webkit-transition: all .15s ease-in-out;
    -moz-transition: all .15s ease-in-out;
    -ms-transition: all .15s ease-in-out;
    -o-transition: all .15s ease-in-out;
    transition: all .15s ease-in-out;
}
.animate-scale-bigger:hover{
    -moz-transform: scale(1.04,1,1);
    -ms-transform: scale(0.96,.96,1);
    -webkit-transform: scale(0.96,.96,1);
    -o-transform: scale(0.96,.96,1);
    transform: scale(1.05);
}
.animate-scale-smaller:hover{
    -moz-transform: scale(0.97);
    -ms-transform: scale(0.97);
    -webkit-transform: scale(0.97);
    -o-transform: scale(0.97);
    transform: scale(0.97);
}
.animate-right:hover{
    transform: translate3d(10px,0,0);
    -o-transform: translate3d(10px,0,0);
    -webkit-transform: translate3d(10px,0,0);
    -moz-transform: translate3d(10px,0,0);
    -ms-transform: translate3d(10px,0,0);
}
.animate-up:hover{
    transform: translate3d(0,-10px,0);
    -o-transform: translate3d(0,-10px,0);
    -webkit-transform: translate3d(0,-10px,0);
    -moz-transform: translate3d(0,-10px,0);
    -ms-transform: translate3d(0,-10px,0);
}
.animate-down:hover{
    transform: translate3d(0,10px,0);
    -o-transform: translate3d(0,10px,0);
    -webkit-transform: translate3d(0,10px,0);
    -moz-transform: translate3d(0,10px,0);
    -ms-transform: translate3d(0,10px,0);
}
.car-move{
    transition: all .2s ease-in;
    transform: translate3d(-6px, 0, 0);
}

/* 省市区 */
.pcd-module{
    .car-source{
        position: absolute;
        right: 20px;
        line-height: 45px;
        span{
            float: left;
            padding-right: 5px;
        }
        .sort-model{
            cursor: pointer;
            display: block;
            float: left;
            i.more{
                float: left;
                display: block;
                height: 10px;
                width: 15px;
                margin: 19px 0 auto 5px;
                background: url(../img/icon/icon-w15.png) no-repeat;
                background-position: 0 -150px;
            }
        }
    }
    .selection-box{
        display: none;
        width: 400px;
        position: absolute;
        background: #fff;
        z-index:100;
        right: -1px;
        top: 43px;
        border: 1px solid #ddd;
        .province-box {
            height: 301px;
            .title {
                height: 40px;
                line-height: 40px;
                text-align: center;
                border-bottom: 1px dashed #ddd;
                .other-city{
                    color: #e53e3c;
                    font-style: normal;
                }
            }
        }
        .city-box {
            .title {
                height: 40px;
                line-height: 40px;
                text-align: center;
                border-bottom: 1px dashed #ddd;
                .other-city{
                    color: #e53e3c;
                    font-style: normal;
                }
            }
            border-top: 1px solid #ddd;
        }
        .box-body {
            padding: 15px 10px 10px 10px;
            .p-style {
                width: 76px;
                height: 30px;
                float: left;
                text-align: center;
                line-height: 30px;
                margin-bottom: 5px;
                a,span {
                    display: block;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    word-wrap: normal;
                    word-break: normal;
                    cursor: pointer;
                    padding: 0 10px;
                    // *padding: 0 7px;
                    color: #333 !important;
                    &:hover{
                        background: #f95b56;
                        color: #fff !important;
                    }
                }
                &.curr{
                    a,span{
                        background: #f95b56;
                        color: #fff !important;
                    }
                }
            }
        }
        .cars-module .module-body {
            border-color: #49be96;
        }
    }

}